package com.web.base.auth.model;

import com.blue.core.dict.State;
import com.blue.core.tree.ITreeItem;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.blue.jdbc.annotation.Transient;

/**
 * 菜单实体类
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月15日
 */
@Table(name = "auth_menu")
public class Menu implements ITreeItem
{
	@Id
	private Integer id; // 编号
	private Integer parentId; // 上级编号
	private Integer appId; // 应用编号
	private String name; // 名称
	private String url; // 链接
	private String descp; // 描述
	private State state; // 状态：0正常，1作废
	private Integer sort; // 排序：升序排序
	private Integer auths; // 权限个数

	@Transient
	private Integer selected; // 是否关联，0已关联，1未关联

	public Menu()
	{
	}

	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getParentId()
	{
		return this.parentId;
	}

	public void setParentId(Integer parentId)
	{
		this.parentId = parentId;
	}

	public Integer getAppId()
	{
		return this.appId;
	}

	public void setAppId(Integer appId)
	{
		this.appId = appId;
	}

	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getUrl()
	{
		return this.url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public String getDescp()
	{
		return this.descp;
	}

	public void setDescp(String descp)
	{
		this.descp = descp;
	}

	public State getState()
	{
		return state;
	}

	public void setState(State state)
	{
		this.state = state;
	}

	public Integer getSort()
	{
		return this.sort;
	}

	public void setSort(Integer sort)
	{
		this.sort = sort;
	}

	public Integer getAuths()
	{
		return this.auths;
	}

	public void setAuths(Integer auths)
	{
		this.auths = auths;
	}

	public Integer getSelected()
	{
		return selected;
	}

	public void setSelected(Integer selected)
	{
		this.selected = selected;
	}

}
